<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //while循环语法结构  while 当...的时候
        // while(条件表达式){
        //     //循环体
        // }
        //当条件表达式真就执行 否则退出循环
        //代码验证
        var num = 1;
        while (num <= 100) {
            console.log('123');
            num++
        }

    </script>
</head>

<body>

</body>

</html>